package java67_adv7;

import java.io.*;

public class DataInAndOut {

	public static void main(String[] args) throws IOException {
//		DataOutputStream dout = new DataOutputStream(new FileOutputStream("1.txt"));
//		dout.writeInt(10000000);
//		dout.writeDouble(Math.PI);
//		dout.writeBoolean(2 > 1);
//		dout.flush();
//		dout.close();
		DataInputStream din = new DataInputStream(new FileInputStream("1.txt"));
		int i = din.readInt();
		System.out.println(i);
		double d = din.readDouble();
		System.out.println(d);
		boolean b = din.readBoolean();
		System.out.println(b);
		din.close();
	}

}
